package com.xiyun.common.response.exceptions;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class XiYunException extends RuntimeException{

    @ApiModelProperty("状态码")
    private Integer code;

    private String msg;

    public XiYunException(String message) {
        super(message);
    }
}
